home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_10
/
allison
/
arglist.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-06
|
494b
|
31 lines
LISTING 12
#include <stddef.h>
class Arglist
{
public:
Arglist(size_t, char **);
~Arglist();
size_t count() const;
const char * const operator[](size_t) const;
private:
enum {CHUNK = 10};
char **args;
size_t used;
size_t available;
void expand(char *);
void add(char *);
};
inline size_t Arglist::count() const
{
return used;
}
inline const char * const Arglist::operator[](size_t i) const
{
return args[i];
}